1 /* Automatically generated nanopb header */
 
   2 /* Generated by nanopb-0.3.7-dev */
 
   4 #ifndef PB_GRPC_LB_V1_LOAD_BALANCER_PB_H_INCLUDED
 
   5 #define PB_GRPC_LB_V1_LOAD_BALANCER_PB_H_INCLUDED
 
   7 #include "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/duration.pb.h"
 
   8 #include "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/timestamp.pb.h"
 
   9 /* @@protoc_insertion_point(includes) */
 
  10 #if PB_PROTO_HEADER_VERSION != 30
 
  11 #error Regenerate this file with the current version of nanopb generator.
 
  18 /* Struct definitions */
 
  19 typedef struct _grpc_lb_v1_ServerList {
 
  20     pb_callback_t servers;
 
  21 /* @@protoc_insertion_point(struct:grpc_lb_v1_ServerList) */
 
  22 } grpc_lb_v1_ServerList;
 
  24 typedef struct _grpc_lb_v1_ClientStats {
 
  26     google_protobuf_Timestamp timestamp;
 
  27     bool has_num_calls_started;
 
  28     int64_t num_calls_started;
 
  29     bool has_num_calls_finished;
 
  30     int64_t num_calls_finished;
 
  31     bool has_num_calls_finished_with_client_failed_to_send;
 
  32     int64_t num_calls_finished_with_client_failed_to_send;
 
  33     bool has_num_calls_finished_known_received;
 
  34     int64_t num_calls_finished_known_received;
 
  35     pb_callback_t calls_finished_with_drop;
 
  36 /* @@protoc_insertion_point(struct:grpc_lb_v1_ClientStats) */
 
  37 } grpc_lb_v1_ClientStats;
 
  39 typedef struct _grpc_lb_v1_ClientStatsPerToken {
 
  40     pb_callback_t load_balance_token;
 
  43 /* @@protoc_insertion_point(struct:grpc_lb_v1_ClientStatsPerToken) */
 
  44 } grpc_lb_v1_ClientStatsPerToken;
 
  46 typedef struct _grpc_lb_v1_InitialLoadBalanceRequest {
 
  49 /* @@protoc_insertion_point(struct:grpc_lb_v1_InitialLoadBalanceRequest) */
 
  50 } grpc_lb_v1_InitialLoadBalanceRequest;
 
  52 typedef struct _grpc_lb_v1_InitialLoadBalanceResponse {
 
  53     bool has_load_balancer_delegate;
 
  54     char load_balancer_delegate[64];
 
  55     bool has_client_stats_report_interval;
 
  56     google_protobuf_Duration client_stats_report_interval;
 
  57 /* @@protoc_insertion_point(struct:grpc_lb_v1_InitialLoadBalanceResponse) */
 
  58 } grpc_lb_v1_InitialLoadBalanceResponse;
 
  60 typedef PB_BYTES_ARRAY_T(16) grpc_lb_v1_Server_ip_address_t;
 
  61 typedef struct _grpc_lb_v1_Server {
 
  63     grpc_lb_v1_Server_ip_address_t ip_address;
 
  66     bool has_load_balance_token;
 
  67     char load_balance_token[50];
 
  70 /* @@protoc_insertion_point(struct:grpc_lb_v1_Server) */
 
  73 typedef struct _grpc_lb_v1_LoadBalanceRequest {
 
  74     bool has_initial_request;
 
  75     grpc_lb_v1_InitialLoadBalanceRequest initial_request;
 
  76     bool has_client_stats;
 
  77     grpc_lb_v1_ClientStats client_stats;
 
  78 /* @@protoc_insertion_point(struct:grpc_lb_v1_LoadBalanceRequest) */
 
  79 } grpc_lb_v1_LoadBalanceRequest;
 
  81 typedef struct _grpc_lb_v1_LoadBalanceResponse {
 
  82     bool has_initial_response;
 
  83     grpc_lb_v1_InitialLoadBalanceResponse initial_response;
 
  85     grpc_lb_v1_ServerList server_list;
 
  86 /* @@protoc_insertion_point(struct:grpc_lb_v1_LoadBalanceResponse) */
 
  87 } grpc_lb_v1_LoadBalanceResponse;
 
  89 /* Default values for struct fields */
 
  91 /* Initializer values for message structs */
 
  92 #define grpc_lb_v1_LoadBalanceRequest_init_default {false, grpc_lb_v1_InitialLoadBalanceRequest_init_default, false, grpc_lb_v1_ClientStats_init_default}
 
  93 #define grpc_lb_v1_InitialLoadBalanceRequest_init_default {false, ""}
 
  94 #define grpc_lb_v1_ClientStatsPerToken_init_default {{{NULL}, NULL}, false, 0}
 
  95 #define grpc_lb_v1_ClientStats_init_default      {false, google_protobuf_Timestamp_init_default, false, 0, false, 0, false, 0, false, 0, {{NULL}, NULL}}
 
  96 #define grpc_lb_v1_LoadBalanceResponse_init_default {false, grpc_lb_v1_InitialLoadBalanceResponse_init_default, false, grpc_lb_v1_ServerList_init_default}
 
  97 #define grpc_lb_v1_InitialLoadBalanceResponse_init_default {false, "", false, google_protobuf_Duration_init_default}
 
  98 #define grpc_lb_v1_ServerList_init_default       {{{NULL}, NULL}}
 
  99 #define grpc_lb_v1_Server_init_default           {false, {0, {0}}, false, 0, false, "", false, 0}
 
 100 #define grpc_lb_v1_LoadBalanceRequest_init_zero  {false, grpc_lb_v1_InitialLoadBalanceRequest_init_zero, false, grpc_lb_v1_ClientStats_init_zero}
 
 101 #define grpc_lb_v1_InitialLoadBalanceRequest_init_zero {false, ""}
 
 102 #define grpc_lb_v1_ClientStatsPerToken_init_zero {{{NULL}, NULL}, false, 0}
 
 103 #define grpc_lb_v1_ClientStats_init_zero         {false, google_protobuf_Timestamp_init_zero, false, 0, false, 0, false, 0, false, 0, {{NULL}, NULL}}
 
 104 #define grpc_lb_v1_LoadBalanceResponse_init_zero {false, grpc_lb_v1_InitialLoadBalanceResponse_init_zero, false, grpc_lb_v1_ServerList_init_zero}
 
 105 #define grpc_lb_v1_InitialLoadBalanceResponse_init_zero {false, "", false, google_protobuf_Duration_init_zero}
 
 106 #define grpc_lb_v1_ServerList_init_zero          {{{NULL}, NULL}}
 
 107 #define grpc_lb_v1_Server_init_zero              {false, {0, {0}}, false, 0, false, "", false, 0}
 
 109 /* Field tags (for use in manual encoding/decoding) */
 
 110 #define grpc_lb_v1_ServerList_servers_tag        1
 
 111 #define grpc_lb_v1_ClientStats_timestamp_tag     1
 
 112 #define grpc_lb_v1_ClientStats_num_calls_started_tag 2
 
 113 #define grpc_lb_v1_ClientStats_num_calls_finished_tag 3
 
 114 #define grpc_lb_v1_ClientStats_num_calls_finished_with_client_failed_to_send_tag 6
 
 115 #define grpc_lb_v1_ClientStats_num_calls_finished_known_received_tag 7
 
 116 #define grpc_lb_v1_ClientStats_calls_finished_with_drop_tag 8
 
 117 #define grpc_lb_v1_ClientStatsPerToken_load_balance_token_tag 1
 
 118 #define grpc_lb_v1_ClientStatsPerToken_num_calls_tag 2
 
 119 #define grpc_lb_v1_InitialLoadBalanceRequest_name_tag 1
 
 120 #define grpc_lb_v1_InitialLoadBalanceResponse_load_balancer_delegate_tag 1
 
 121 #define grpc_lb_v1_InitialLoadBalanceResponse_client_stats_report_interval_tag 2
 
 122 #define grpc_lb_v1_Server_ip_address_tag         1
 
 123 #define grpc_lb_v1_Server_port_tag               2
 
 124 #define grpc_lb_v1_Server_load_balance_token_tag 3
 
 125 #define grpc_lb_v1_Server_drop_tag               4
 
 126 #define grpc_lb_v1_LoadBalanceRequest_initial_request_tag 1
 
 127 #define grpc_lb_v1_LoadBalanceRequest_client_stats_tag 2
 
 128 #define grpc_lb_v1_LoadBalanceResponse_initial_response_tag 1
 
 129 #define grpc_lb_v1_LoadBalanceResponse_server_list_tag 2
 
 131 /* Struct field encoding specification for nanopb */
 
 132 extern const pb_field_t grpc_lb_v1_LoadBalanceRequest_fields[3];
 
 133 extern const pb_field_t grpc_lb_v1_InitialLoadBalanceRequest_fields[2];
 
 134 extern const pb_field_t grpc_lb_v1_ClientStatsPerToken_fields[3];
 
 135 extern const pb_field_t grpc_lb_v1_ClientStats_fields[7];
 
 136 extern const pb_field_t grpc_lb_v1_LoadBalanceResponse_fields[3];
 
 137 extern const pb_field_t grpc_lb_v1_InitialLoadBalanceResponse_fields[3];
 
 138 extern const pb_field_t grpc_lb_v1_ServerList_fields[2];
 
 139 extern const pb_field_t grpc_lb_v1_Server_fields[5];
 
 141 /* Maximum encoded size of messages (where known) */
 
 142 #define grpc_lb_v1_LoadBalanceRequest_size       (140 + grpc_lb_v1_ClientStats_size)
 
 143 #define grpc_lb_v1_InitialLoadBalanceRequest_size 131
 
 144 /* grpc_lb_v1_ClientStatsPerToken_size depends on runtime parameters */
 
 145 /* grpc_lb_v1_ClientStats_size depends on runtime parameters */
 
 146 #define grpc_lb_v1_LoadBalanceResponse_size      (98 + grpc_lb_v1_ServerList_size)
 
 147 #define grpc_lb_v1_InitialLoadBalanceResponse_size 90
 
 148 /* grpc_lb_v1_ServerList_size depends on runtime parameters */
 
 149 #define grpc_lb_v1_Server_size                   83
 
 151 /* Message IDs (where set with "msgid" option) */
 
 154 #define LOAD_BALANCER_MESSAGES \
 
 162 /* @@protoc_insertion_point(eof) */